package cn.yudao.system.mapper;

import cn.yudao.system.domain.Permission;
import cn.yudao.system.domain.Role;
import cn.yudao.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yudao
 * @since 2022-07-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    void RoleRemoveMenu(Long id);

    void saveRoleMenu(@Param("id") Long id,@Param("menuIds") List<Long> menus);

    void RoleRemovePermission(Long id);

    void saveRolePermission(@Param("id") Long id,@Param("permissions") List<Permission> permissions);
}
